package com.manager.enterprise.module.dao;

import com.manager.commons.mybatis.annotation.MyBatisDao;
import com.manager.commons.mybatis.dao.GenericDao;
import com.manager.core.module.manager.entity.ComboTreeList;
import com.manager.enterprise.module.entity.GenOrganization;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * GenOrganizationDao
 *组织架构 
 * @author manager
 * @version 1.0
 */
@MyBatisDao
public interface GenOrganizationDao extends GenericDao<GenOrganization> {
    List<ComboTreeList> queryTree(Map<String, Object> params);
    GenOrganization findOne(Map<String, Object> params);
    GenOrganization findModelPath(@Param("_id") String id);
    //查询名字是否存在
    Integer findModelName(Map<String, Object> params);
}
